export const state = () => {
  return {
    status: "left",
    isShowAccountOrCurrency: true, //是否显示 true:支付账户  false:还是币种
    isShowCurrencyChooseModel: false, //是否显示 账户，币种面板
    isShowWithdrawChooseModel: false, //是否显示 选择提现方式面板
    isShowWithdrawDialogBox: false, //是否弹出提现框
    isShowPaymentChooseModel: false, //是否显示 选择付款方式面板
    isShowContactServiceModel: false //是否显示 客服联系面板
  };
};

export const mutations = {
  SET_WEALTH_STATUS(state, str) {
    let status = str == 1 ? "left" : "right";
    state.status = status;
  },
  SET_isShowAccountOrCurrency(state, bool) {
    state.isShowAccountOrCurrency = bool;
  },
  SET_isShowCurrencyChooseModel(state, bool) {
    state.isShowCurrencyChooseModel = bool;
  },
  SET_isShowWithdrawChooseModel(state, bool) {
    state.isShowWithdrawChooseModel = bool;
  },
  SET_isShowWithdrawDialogBox(state, bool) {
    state.isShowWithdrawDialogBox = bool;
  },
  SET_isShowPaymentChooseModel(state, bool) {
    state.isShowPaymentChooseModel = bool;
  },
  SET_isShowContactServiceModel(state, bool) {
    state.isShowContactServiceModel = bool;
  }
};

export const getters = {};

export const actions = {
  // async GET_AREA_CODE ({ commit }){
  //   try {
  //     let data = await this.$axios.get('/area_code.json');
  //     console.log(data);
  //   } catch (e) {
  //     throw e;
  //   }
  // }
};
